package com.ym.medical.dao;

import com.ym.medical.domain.entity.PhoneRuleEntity;
import com.ym.medical.domain.param.PhoneRuleModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 电话规则表Dao接口
 *
 * @author ym
 * @date 2020-08-24
 */
@Repository
public interface PhoneRuleDao extends Mapper<PhoneRuleEntity> {

    /***
     * 默认电话咨询三条数据
     * @return
     */
    List<PhoneRuleEntity> getDefaultPhoneRule();

	List<PhoneRuleModel> selectPhoneItem(Long userId);

	List<PhoneRuleModel> selectAllPhoneItem(@Param("userId") Long doctorId);
}
